var express = require('express');
var router = express.Router();
var userControll = require('../controllerss/userController')

router.get('/', function(req, res, next) {
    res.send('页面信息');
  });

router.get('/addComments',function(req,res,next){
  userControll.addCommets(req,res)
});


router.get('/showConmments',function(req,res,next){
  
  userControll.showCommets(req,res)
});

router.get('/updateLike',function(req,res,next){
  userControll.updateLike(req,res)
});

router.get('/topic',function(req,res,next){
  userControll.topic(req,res)
});

router.get('/getAuthor',function(req,res,next){
  userControll.getAuthor(req,res)
});
module.exports = router;